package com.sikaryofficial.workbench.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.sikaryofficial.workbench.domain.entity.OrderItem;

import java.util.Collection;
import java.util.Collections;
import java.util.List;

/**
 * 预子订单Service接口
 * 
 * @author wuweihong
 * @date 2024-09-23
 */
public interface IOrderItemService extends IService<OrderItem>
{
	    default List<OrderItem> listByOrderHeaderId(Long orderHeaderId) {
        return listByOrderHeaderIds(Collections.singletonList(orderHeaderId));
    }

    List<OrderItem> listByOrderHeaderIds(Collection<Long> orderHeaderIds);
}
